import java.util.ArrayList;

/*
 * Controls array lists containing data to be graphed (weight, blood pressure, blood sugar etc.)
 */
public class PatientData {
	private ArrayList weightData = new ArrayList();
	private ArrayList bpData = new ArrayList();
	private ArrayList sugarData = new ArrayList();
	
	//input methods
	public void inputWeightData(double data) {
		weightData.add(data);
	}
	public void inputBPData(double data) {
		bpData.add(data);
	}
	public void inputSugarData(double data) {
		sugarData.add(data);
	}
	
	//set
	//to change an incorrect data point
	public void setWeightData(int index, double data) {
		weightData.set(index, data);
	}
	public void setBPData(int index, double data) {
		bpData.set(index, data);
	}
	public void setSugarData(int index, double data) {
		sugarData.set(index, data);
	}
	
	//delete methods
	//deletes most recent data
	public void deleteWeightData() {
		weightData.remove(weightData.size()-1);
	}
	public void deleteBPData() {
		bpData.add(bpData.size()-1);
	}
	public void deleteSugarData() {
		sugarData.add(sugarData.size()-1);
	}
	
	private class PressureData
	{
		public PressureData()
		{
			
		}
		
	}
}
